const mysql2 = require('mysql2');
const dbConfig = require('@/config/sql')

const db = mysql2.createPool(dbConfig)

// 对外暴露数据库连接对象
module.exports = db;